package com.dao;

import java.util.List;
import java.util.Map;

import com.beans.Admin;
import com.beans.AdminLog;
import com.vo.Page;

public interface AdminDao extends UniversalDao {
	public Admin login(String name,String pwd,String ip);
	public boolean myPwd(int userid,String oldPwd,String newPwd);
	public Page list(int pageNo,int pageSize,Admin admin);
	public Map getAdmin(int id);
	public List getUrl();
	public boolean findLoginName(String loginName);
	public void updateAdmin(Admin a);
	public void insertAdmin(Admin a);
	public void deleteAdmin(Admin a);
	public List getMenuList(String roller_code);
	//后台角色的功能菜单
	public List getMenuByRoller(String roller_code);
	public void updateRollerMenu(String roller_code,String[] function_code);
	public Page getLog(int pageNo,int pageSize,AdminLog log);
	public String getPath(String url);
	public void getUpdateFunctionURL(String function_code,String[] url);
	//角色所属的URL
	public List getURLByRoller(String roller);
}
